﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using RazorTemplateEngine;
using System.Diagnostics;

namespace RazorLab
{
    public class HtmlExtension
    {
        public string Raw(string content)
        {
            return content;
        }
    }


    public class CustomeizePage : __TemplatePage
    {
        private HtmlExtension _html = new HtmlExtension();

        public HtmlExtension Html
        {
            get { return _html; }
            set { _html = value; }
        }

    }


    [TestClass]
    public class RazorTemplateEngine_CustomizeBasePage
    {
        [TestMethod]
        public void TestMethod1()
        {
            TestController tc = new TestController();
            TemplateDriver.DefaultTemplateBaseType = typeof(CustomeizePage);
            Debug.WriteLine(TemplateDriver.Drive(tc.Action2()));
        }
    }
}
